From: Ian Jackson Date: Wed, 25 Jun 2014 09:54:54 +0000 (+0100) Subject: xenstore: Make building of xenstored optional X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~4660 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6b76b4bb13407489b9f803c4b101d4c516650e2e;p=xen.git xenstore: Make building of xenstored optional In principle it would be possible to make a rumpuser-xen-based stub xenstored, but all the necessary pieces do not yet exist. So provide a facility to disable compilation of xenstored, and use it to disable it on rump kernels. Signed-off-by: Ian Jackson Acked-by: Ian Campbell --- diff --git a/config/NetBSDRump.mk b/config/NetBSDRump.mk index e06327253e..e32c1cd7bc 100644 --- a/config/NetBSDRump.mk +++ b/config/NetBSDRump.mk @@ -6,3 +6,5 @@ PTHREAD_LIBS = XEN_LOCK_DIR = /var/lib WGET = ftp + +XENSTORE_XENSTORED=n diff --git a/tools/Rules.mk b/tools/Rules.mk index 13d8fc13b3..0a8dd3eba2 100644 --- a/tools/Rules.mk +++ b/tools/Rules.mk @@ -19,6 +19,8 @@ XEN_LIBVCHAN = $(XEN_ROOT)/tools/libvchan CFLAGS_xeninclude = -I$(XEN_INCLUDE) +XENSTORE_XENSTORED ?= y + CFLAGS_libxenctrl = -I$(XEN_LIBXC) $(CFLAGS_xeninclude) LDLIBS_libxenctrl = $(XEN_LIBXC)/libxenctrl.so SHLIB_libxenctrl = -Wl,-rpath-link=$(XEN_LIBXC) diff --git a/tools/xenstore/Makefile b/tools/xenstore/Makefile index 8421865f40..a9473d6d2c 100644 --- a/tools/xenstore/Makefile +++ b/tools/xenstore/Makefile @@ -28,7 +28,10 @@ LIBXENSTORE := libxenstore.a xenstore xenstore-control: CFLAGS += -static endif -ALL_TARGETS = libxenstore.so libxenstore.a clients xs_tdb_dump xenstored +ALL_TARGETS = libxenstore.so libxenstore.a clients +ifeq ($(XENSTORE_XENSTORED),y) +ALL_TARGETS += xs_tdb_dump xenstored +endif ifeq ($(CONFIG_Linux),y) ALL_TARGETS += init-xenstore-domain @@ -114,8 +117,10 @@ install: all $(INSTALL_DIR) $(DESTDIR)$(SBINDIR) $(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR) $(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)/xenstore-compat +ifeq ($(XENSTORE_XENSTORED),y) $(INSTALL_DIR) $(DESTDIR)/var/lib/xenstored $(INSTALL_PROG) xenstored $(DESTDIR)$(SBINDIR) +endif $(INSTALL_PROG) xenstore-control $(DESTDIR)$(BINDIR) $(INSTALL_PROG) xenstore $(DESTDIR)$(BINDIR) set -e ; for c in $(CLIENTS) ; do \